package net.qhzw.admin.service;

import net.qhzw.admin.mapper.SysDictMapper;
import net.qhzw.admin.pojo.DrpBnBox;
import net.qhzw.admin.pojo.SelectBoxQuery;
import net.qhzw.common.model.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BoxService {

    @Autowired
    private SysDictMapper dictMapper;

    /***
     * 获取下拉框
     * @param query
     * @return
     */
    public JsonResult getBox(SelectBoxQuery query) {
        List<DrpBnBox> list = dictMapper.selectBox(query);
        return JsonResult.success(list);
    }
}
